package course.dao;

import course.pojo.entity.StuSub;

import java.sql.Connection;
import java.util.List;

/**
 * @author HLF
 * @date 2022/7/1 9:39
 */
public interface StuSubDao {
    int addStuSub(StuSub stuSub, Connection connection);

    List<StuSub> getList(Connection connection);


    List<StuSub> getBySid(Integer sid,Connection connection);

    List<StuSub> getBySuid(Integer suid,Connection connection);

    StuSub getBySidAndSuid(Integer sid, Integer suid, Connection connection);

    int deleteBySidAndSuid(Integer sid, Integer suid, Connection connection);

    int deleteSelect(List<Integer> ids, Integer sid, Connection connection);
}
